import request from '@/utils/request'

export function getBusinessList(data) {
  return request({
    url: `/kd_manage/business/query`,
    method: 'post',
    data: data
  })
}

export function listBusiness(data) {
  return request({
    url: '/kd_manage/merchantIndustry/page',
    method: 'post',
    data: data
  })
}

export function delBusiness(params) {
  return request({
    url: '/kd_manage/merchantIndustry/remove',
    method: 'DELETE',
    params
  })
}

export function allAuth(params) {
  return request({
    url: 'kd_manage/merchantIndustry/allAuth',
    method: 'get',
    params
  })
}

export function addBusiness(data) {
  return request({
    url: '/kd_manage/merchantIndustry/add',
    method: 'post',
    data
  })
}

export function updateBusiness(data) {
  return request({
    url: '/kd_manage/merchantIndustry/update',
    method: 'post',
    data
  })
}

export function ownerAuth(params) {
  return request({
    url: '/kd_manage/merchantIndustry/info',
    method: 'get',
    params
  })
}